package com.itheima.stock.map;

import com.itheima.stock.pojo.SysUser;
import com.itheima.stock.vo.resp.UsersPageRespVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @ClassName SysUserToPageMapper
 * @Description TODO
 * @date 2023/2/24 13:23
 * @Version 1.0
 */
@Mapper
public abstract class SysUserToPageMapper {
    public static SysUserToPageMapper INSTANCT = Mappers.getMapper(SysUserToPageMapper.class);
    @Mapping(target = "createUserName", ignore = true)//或略不进行映射
    @Mapping(target = "updateUserName", ignore = true)//或略不进行映射

    public abstract UsersPageRespVo conver(SysUser user);
}
